package com.zy.web.demo.duoxiancheng.demo20;

import java.io.PipedOutputStream;

/**
 * @author <a href="mailto:zhouyong@cqyyt.com">zy</a>
 * @version 1.0
 * @date 2020/8/20 14:29
 */
public class ThreadA20 extends Thread{

    private WriteData writeData;
    private PipedOutputStream out;

    public ThreadA20( WriteData writeData,PipedOutputStream out ){
        this.writeData = writeData;
        this.out = out;
    }

    @Override
    public void run() {
        super.run();
        writeData.WriteMethod(out);
    }
}
